home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 26 / AMIGAplus Sonderheft 26 (2000)(Falke)(DE)(Track 1 of 2)[!].iso / Tools / SFX-Player / Mpeg / mpegaudio_datatype / mpegaudiotest < prev    next >
Text File  |  1999-03-29  |  776b  |  36 lines

  1. ; mpegaudio.datatype test script
  2. ; Execute it from the base directory
  3.  
  4. FailAt 10
  5. Set ECHO ON
  6.  
  7. ; Is here the datatype shared library ?
  8. If EXISTS "mpegaudio.datatype.ld"
  9.   ; Check if we created the test directory
  10.   If NOT EXISTS "RAM:DataTypes"
  11.     MakeDir "RAM:DataTypes"
  12.     Assign LIBS: RAM: ADD
  13.   EndIf
  14.  
  15.   ; Copy descriptor
  16.   If NOT EXISTS "RAM:MPEG Audio"
  17.     Copy CLONE FROM="MPEG Audio(%|.info)" TO="RAM:"
  18.   EndIf
  19.  
  20.   ; Copy class library
  21.   Copy CLONE FROM="mpegaudio.datatype.ld" TO="RAM:Datatypes/mpegaudio.datatype"
  22.  
  23.   ; Copy "maplay" audio decoder
  24.   If NOT EXISTS "RAM:maplay"
  25.     Copy CLONE FROM="maplay" TO="RAM:"
  26.     Assign maplay: ram:
  27.   EndIf
  28.  
  29.   ; Get rid of the old version
  30.   C:FlushLibs
  31. Else
  32.   ECHO "No mpegaudio.datatype.ld in this directory"
  33.   Quit 10
  34. EndIf
  35.  
  36.